import { createStore, applyMiddleware, combineReducers } from 'redux'

import thunk from 'redux-thunk'

// 引入为Count 组件服务的 reducer
import countReducer from '../redux/reduers/count_reducer'
import personReducer from '../redux/reduers/person_reducer'

const allReducers = combineReducers({
  he: countReducer,
  person: personReducer
})
// 暴露 store
export default createStore(allReducers, applyMiddleware(thunk))